package com.qf.md.item.controller;

import com.qf.common.PageParam;
import com.qf.common.R;
import com.qf.common.PageVO;
import com.qf.md.item.service.MdItemService;
import com.qf.md.item.vo.ItemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/md/item")
public class MdItemController {
    @Autowired
    @Qualifier("mis")//引用bean       按照名称注入
    private MdItemService mdItemService;
    @GetMapping("/list")
    public R<PageVO<ItemVO>>  findItemVO(PageParam pageParam) {
        PageVO<ItemVO> pageVO = mdItemService.findItemVO(pageParam);
        return R.ok(pageVO);
    }
}
